package com.chushouya.manager.dto.admin.im;

import com.general.framework.core.enums.IEnum;

public enum Event implements IEnum<String> {

    connectionSuccess("connectionSuccess", "连接成功"),
    heartBeat("heartBeat", "心跳"),
    receiveSuccess("receiveSuccess", "服务端接收消息成功"),
    requestClose("requestClose", "服务端申请断开连接"),
    messagePush("messagePush", "服务端消息推送"),
    dataPush("dataPush", "客户端数据更新接收");

    private String value;

    private String name;

    Event(String value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String value() {
        return value;
    }

    @Override
    public String named() {
        return name;
    }
}
